package iter3;

public class Punkty {
    private int p;
    private int q;
    
    public Punkty()
    {
        p = 0;
        q = 0;
    }
    
    public String toString()
    {
        return Integer.toString(p);
    }
    
    public void setP(int points)
    {
        p = points;
    }
    
    public int getP()
    {
        return p;
    }
    
    public void dodajPunkty(int points)
    {
        p += points;
    }
    
    public void odejmijPunkty(int points)
    {
        p -= points;
        q++;
        
    }
    
    public int getQ() {
    	return q;
    }
}
